Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next

The usage of those calls made assumptions about processes and window parentage that are no longer the case with the Notes 8.x Standard Client.

In investigating the referenced SPR we had found that the usage of those APIs did not supply the expected hWnd (to the Windows API), and as such, the API did not work.

Microsoft documents the API here: http://msdn.microsoft.com/en-us/library/ms648002(VS.85).aspx

In the documentation, the hWnd is specified as needing to be from the application. Strictly speaking, this means that the hWnd needs to be from the same process (NLNOTES.EXE), and GetActiveWindow will obtain an hWnd from the Notes2.EXE process.

GetActiveWindow from user32.dll This is the problem. In Notes 8 Standard, this will get the top-level window in the Notes2 process. GetFocus should be used instead and supplied to TrackPopupMenuEx

TrackPopupMenuEx from user32.dll This API will fail when the window supplied is from a different process than NLNOTES.EXE By supplying GetActiveWindow to this API, the Windows API call will fail


Doug Conmy
Lotus Notes Lead Architect


Feedback response number DCOY7XQ3KX created by ~Dan Elwezenynds on 11/12/2009

C API to user32.dll in Notes 8.5.1 ... (~Kim Frolulitod... 11.Nov.09)
. . The usage of those calls made assum... (~Naomi Dwoachek... 12.Nov.09)
. . . . Use GetFocus instead of GetActiveWi... (~Kim Frolulitod... 15.Nov.09)
. . . . Doug: Made changes... still not wor... (~Kim Frolulitod... 16.Nov.09)
. . . . . . RESOLVED! (~Kim Frolulitod... 17.Nov.09)
. . . . . . . . Still watching this thread? (~Sigmund Zekfre... 23.Nov.09)
. . . . . . . . . . Works today!?!?! (~Sigmund Zekfre... 24.Nov.09)
. . . . . . . . . . . . Glad it's resolved (~Kim Frolulitod... 11.Jan.10)
. . . . . . . . Glad to see that you were able to g... (~Naomi Dwoachek... 1.Dec.09)
. . There could be workaround, but not ... (~Manny Lopvelul... 12.Nov.09)
. . Fwd'd to development (~Dexter Opjipyb... 12.Nov.09)
. . . . popup not working perfectly (~Sarah Rewemarl... 16.Apr.15)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS